﻿on_game_start_after_lobby = {
    on_actions = { mcfm_on_game_start_after_lobby }
}


mcfm_on_game_start_after_lobby = {
    effect = {
        every_living_character = {
            limit = {
                has_trait = futa_genetic
                NOR = {
                    has_trait = futa_exposed
                    any_secret = { type = secret_futa }
                }
            }

            if = {
                limit = {
                    OR = {
                        faith = { has_doctrine = futa_doctrine_futanari_equality_crime }
                        faith = { has_doctrine = futa_doctrine_futanari_equality_shunned }
                        any_liege_or_above = {
                            OR = {
                                faith = { has_doctrine = futa_doctrine_futanari_equality_crime }
                                faith = { has_doctrine = futa_doctrine_futanari_equality_shunned }
                            }
                        }
                    }
                }
                add_secret = { type = secret_futa }
            }
            else = {
                add_trait = futa_exposed
            }
        }
    }
}